package com.ticket.sass.admin.dto.input.config;

import com.ticket.sass.admin.validator.InEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * @author ywb
 * @date 2024-03-22 17:23
 */
@Data
@ApiModel
public class NoticesConfigInput {
    @NotBlank(message = "通知内容不能为空")
    @ApiModelProperty(value = "通知内容")
    private String content;
    

    @Size(min = 1, message = "显示位置不能为空")
    @ApiModelProperty(value = "显示位置：1 首页 2 待定")
    @Valid
    private List<@InEnum(intValues = {1, 2}) Short> position;
}
